﻿<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=10,IE=9,IE=8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0">
    <title>@ViewBag.Title</title>
    <meta name="keywords" content="@ViewBag.Keywords">
    <meta name="description" content="@ViewBag.Description">
    <meta name="generator" content="@Setting.Generator"/>
    <link rel="icon" href="@(Config.SiteUrl)favicon.ico" type="image/x-icon" />
    @*<link href="@GetThemeUrl("style.css")" type="text/css" media="all" rel="stylesheet"/>*@
    @Styles.Render("~/content/themes/d8/style")
    @RenderSection("Styles", false)
    @RenderHeader()
    <!--[if lt IE 9]><script src="@GetThemeUrl("js/html5.js")"></script><![endif]-->
</head>
<body class="home">
    <header class="header">
        <div class="navbar">
            <h1 class="logo"><a href="@Config.SiteUrl" title="@Setting.SiteDescription">@Setting.SiteName</a></h1>
            @RenderMenuNav("menu_nav")
            <div class="menu pull-right">
                <form action="@Config.SiteUrl" class="dropdown search-form" method="get">
                    <input class="search-input" name="q" type="text" placeholder="输入关键字搜索" autofocus="" x-webkit-speech="" value="@RequestHelper.QueryString("q")"/>
                    <input class="btn btn-success search-submit" type="submit" value="搜索" />
                    <ul class="dropdown-menu search-suggest"></ul>
                </form>
                <div class="btn-group pull-left">
                    <button class="btn btn-primary" data-toggle="modal" data-target="#feed">订阅</button>
                    <button class="btn btn-primary dropdown-toggle" data-toggle="dropdown">关注 <i class="caret"></i></button>
                    <ul class="dropdown-menu pull-right">
                        <li><a href="@ThemeInfo("tencent_weibo")" target="_blank">腾讯微博</a></li>
                        <li><a href="@ThemeInfo("sina_weibo")" target="_blank">新浪微博</a></li>
                    </ul>
                </div>
            </div>
        </div>
        <div class="speedbar">
            <div class="pull-right">
                <i class="icon-user icon12"></i>@Html.ActionLink("登录", "Index", "Login")
            </div>
            <div class="toptip"><strong class="text-success">最新消息：</strong>@Html.Raw(ThemeInfo("last_news"))</div>
        </div>
    </header>
    <section class="container">
        @RenderBody()
    </section>
    <footer class="footer">
        <div class="footer-inner">
            <div class="copyright pull-left">
                @Html.Raw(Setting.Copyright) . <a href="http://www.miibeian.gov.cn/" rel="external nofollow">@Setting.SiteIcp</a>
            </div>
            <div class="trackcode pull-right">
                Processed in  @ExcuteTime second(s) @Queries queries . @Html.Raw(Setting.StatisticCode)
            </div>
        </div>
    </footer>
    @RenderSection("JsSetting", false)
    <script src="@GetThemeUrl("js/jquery.js")"></script>
    @RenderSection("Scripts", false)
    <script type="text/javascript">
        var $li = $('li.menu-item[class^="current-"]').parent().parent();
        while (1 === $li.length && 'navbar' != $li.attr('class')) {
            $li.addClass('current-menu-parent');
            $li = $li.parent().parent();
        }
    </script>
    @RenderFooter()
</body>
</html>
